#include <stdio.h>
#include <stdlib.h>
typedef struct Node {
	int data;
	struct Node* next;
}Lnode, LinkList;
LinkList* createList_R(int n, int t) {
	LinkList* S;
	S = (LinkList*)malloc(sizeof(LinkList)); if (!S) return 0;
	S->next = NULL;
	int i;
	LinkList* r;
	r = S;
	for (i = 1; i <= n; i++)
	{
		LinkList* p;
		p = (LinkList*)malloc(sizeof(LinkList));
		if (!p) return 0;
		// scanf_s("%d",&t);
		p->data = i * (rand() % 10 - 5);
		r->next = p;
		p->next = NULL;
		r = p;
	}
	return S;
}
void DisplayLinkList(LinkList* L1) {
	LinkList* p = L1->next;
	while (p) {
		printf("%3d", p->data);
		p = p->next;
	}
	printf("\n");
}
